# -*- coding: utf-8 -*-
"""
settings live here
"""
##
# @author J.Ducastel <nospam0@ducastel.name>

# imports
# exceptions

# classes et fonctions

# @todo load settings from project to override defaults
class Settings:
    """settings class"""
    # if set to True, auto user creation won't be allowed
    # decorators etc
    CLOSED_MODE = False
    
    def __init__(self):        
        # trying to load project settings
        from django.conf import settings as project_settings
        self.CLOSED_MODE = getattr(project_settings, 'NOACCOUNT_CLOSED_MODE', self.CLOSED_MODE)

settings = Settings()